package app.view;


import java.io.IOException;
import java.io.InputStream;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import app.model.MailAccount;

public class SettingsActivity extends Activity{
	
	//MailAccount mailAccount= new MailAccount();
	//SharedPreferences preferences;
	//public static final String SETTINGS_NAME = "Mysettings";
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.settings);
        
        /*
        WebView wb = new WebView(this);
        wb.loadUrl("file://assets/loading11.gif");
        
        setContentView(wb);
        */
        
        
        
        
       /* //Getting Email Account Settings
        try{ 
        preferences = getSharedPreferences(SETTINGS_NAME, 0);
        }
        catch (Exception e)
        {
        	e.printStackTrace();
        }
        //If Account settings are not existing , settings page will pop up else the main page pops up
     
        	
        	Button save=(Button)findViewById(R.id.butSave); //Finding save button and binding a listener
        	save.setOnClickListener(onSave); */
        	
    }
	
	/*
	 private View.OnClickListener onSave=new View.OnClickListener() {
		    public void onClick(View v) {
		    	//Getting all the data from the mail account forms
		      EditText username=(EditText)findViewById(R.id.name);
		      EditText password=(EditText)findViewById(R.id.pass);
		      //Loading the preferences 
		      SharedPreferences settings = getSharedPreferences(SETTINGS_NAME, 0);
		      SharedPreferences.Editor editor = settings.edit();
		      //Inserting all preferences. Persistence .
		      editor.putString("username", username.getText().toString());
		      editor.putString("pass", password.getText().toString());
		      editor.commit();
		      //After finishing processing the preferences prompts to main layout.
		      setContentView(R.layout.main);
		    }
		  };*/
}
